package cn.edu.cqie.maven_onlinexem.serviceImp;

import cn.edu.cqie.maven_onlinexem.dao.SubjectDao;
import cn.edu.cqie.maven_onlinexem.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.edu.cqie.maven_onlinexem.bean.subject;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SubjectServiceImp implements SubjectService {
    @Autowired
    SubjectDao subjectDao;
    @Override
    public int findSubject_id(String Subject_name) {
        /*System.out.println("123");
        int  Subject_id= subjectDao.findSubject_id(Subject_name);
        System.out.println(Subject_id);*/
        return subjectDao.findSubject_id(Subject_name);
    }

    @Override
    public List<subject> findSubject_name(subject subject) {
        List<subject> subjects = subjectDao.findSubject_name(subject);
        return subjects;
    }


}
